package org.dbwebx.flex.common.event
{

	import mx.collections.ArrayCollection;
	import mx.events.FlexEvent;
	
	import org.dbwebx.domain.User;

	public class UserEvent extends FlexEvent
	{
		
		public static  const U_FOUND_EVT:String = "User:Found";
		
		public static  const U_LIST_LOADED_EVT:String = "User:ListLoaded";
		
		public static  const U_LOADED_EVT:String = "User:Loaded";
		
		public function UserEvent(type:String)
		{
			super(type);
		}
		
		private var _user:User;
		
		private var _users:ArrayCollection;
		
		public function get user():User
		{
			return this._user;
		}
		
		public function set user(value:User):void
		{
			this._user = value;
		}
		
		public function get users():ArrayCollection
		{
			return this._users;
		}
		
		public function set users(list:ArrayCollection):void
		{
			this._users = list;
		}
		
	}
}